﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace NetDon.OA.Interface.Common
{
    public interface IShuntingCostConfigService
    {
        void AppendShuntingCostConfig(Guid areaId, Guid routeTypeId, string deliveryCity, 
                                      string province);
        bool AddShuntingCostConfig(ShuntingCostConfigData shuntingCostConfigData);

        bool ModifyShuntingCostConfig(ShuntingCostConfigData shuntingCostConfigData);

        bool RemoveShuntingCostConfig(Guid shuntingCostConfigId);

        ShuntingCostConfigData GetShuntingCostConfigById(Guid shuntingCostConfigId);

        List<ShuntingCostConfigData> GetShuntingCostConfigs();

        bool CheckShuntingCostConfigReferenced(Guid shuntingCostConfigId);


        int GetShuntingCostConfigCount(ShuntingCostConfigDataSearchCriteria criteria);

        IEnumerable<ShuntingCostConfigData> SearchShuntingCostConfigDatasByCondition(ShuntingCostConfigDataSearchCriteria criteria,
                                       string sortExpression, SortDirection sortDirection, int pageSize, int pageIndex);

        bool CheckShuntingCostConfigDataExists(Guid id, Guid routeType, string city, Guid areaId, int checkoutType);

        ShuntingCostConfigData GetShuntingCostConfigDatasByCondition(ShuntingCostConfigDataSearchCriteria criteria);
    }


}

